using System;
using Microsoft.SPOT;
using MicroContainer;

namespace ConsoleDemo
{
   public class ComponentB : IComponentB
   {
      private IComponentA _a;      

      public ComponentB([Dependency(MappingName = null, Required = true)] IComponentA a)
      {
         Debug.Print("ComponentB: .ctor(IComponentA)");
         _a = a;
      }

      public void DoSomething()
      {
         Debug.Print("ComponentB: DoSomething()");
         _a.DoSomething();
      }
   }
}
